package com.quick.admin.service;

import com.quick.admin.mapper.UserMapper;
import com.quick.common.dto.UserAdminDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：chicunxiang
 * @date ：Created in 2021/1/26 13:53
 * @description：
 * @version: 1.0
 */
@Service
public class UserAdminService {

    @Autowired
    private UserMapper mUserMapper;

    public List<UserAdminDto> findAdmin(String username, String password) {
        return mUserMapper.findAdmin(username,password);
    }

    public List<UserAdminDto> findAdminFromUsername(String username) {
        return mUserMapper.findAdminFromUsername(username);
    }
}
